Package client.teavm.common.audio


package client.teavm.common.audio
Provides the TeaVM-specific audio and video drivers that connect the Java-based JSIDPlay2 emulator core with the browser runtime.

This package implements the AudioDriver and VideoDriver interfaces for the TeaVM environment, enabling real-time audio and video output when the emulator is compiled to JavaScript or WebAssembly.

Key Responsibilities

  • Initialize and stream SID audio samples through the IImportedApi interface to JavaScript.
  • Deliver pixel frames from the VIC-II emulation to the browser for visual output.
  • Relay SID register writes in sync with the emulated clock for accurate chip timing and external visualization or debugging.
  • Coordinate timing and event scheduling with EventScheduler to ensure smooth playback under both JS and WASM builds.
  • Support optional USB output and fast-forward emulation modes through the Mixer configuration.

In essence, this package provides the runtime audio/video bridge for TeaVM-compiled versions of JSIDPlay2, ensuring low-latency streaming and tight synchronization between the emulator core and the browser’s Web Audio and Canvas subsystems.

Autor:
Ken Händel
  • Klassen
    Klasse
    Beschreibung
    Audio driver to be used in the JavaScript and web assembly version builds.